package com.enba.mallapi.module.auth.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Set;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

@Data
@ApiModel(value = "SaveRolePermissionReq", description = "角色分配权限-入参")
public class SaveRolePermissionReq {

  @ApiModelProperty("角色ID")
  @NotNull(message = "角色ID不能为空")
  private Long roleId;

  @NotNull(message = "权限ID集合不能为空")
  @Size(min = 1, message = "权限ID集合不能为空")
  @ApiModelProperty("权限ID集合")
  private Set<Long> menuIdSet;
}
